﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Shapes;
using System.Windows.Media;
using System.Windows;
using System.Windows.Controls;

namespace DiagramCreator.Nodes
{
    class ActionNode : GenericNode
    {
        #region - Konstruktor -

        public ActionNode()
            : base()
        {
            Rectangle mainShape = new Rectangle();
            mainShape.Fill = (Brush)this.Resources["NodeBgFillGradient"];
            mainShape.Stroke = new SolidColorBrush(Color.FromArgb(255, 10, 10, 10));
            mainShape.StrokeThickness = 1;
            mainShape.RadiusX = 2.5;
            mainShape.RadiusY = 2.5;
            mainShape.Width = Double.NaN;
            mainShape.Height = Double.NaN;
            mainShape.Margin = new Thickness(0, 0, 0, 0);
            this.ShapeGrid.Children.Add(mainShape);
            this.Shape = mainShape;
            this.IsSizeable = true;
            this.CanHaveMultipleChildren = false;

        }

        #endregion
    }
}
